<template>
  <div class="top-head">
    <div class="banxin flex">
      <div class="welcom">欢迎来到叩丁狼积分商城</div>
      <div class="right flex">
        <ul class="flex">
          <li>
            <img :src="headImg" alt="" />
            <span>用户名：</span>
            <span>--</span>
          </li>
          <li>
            <span>我的鸡腿：</span>
            <span>--</span>
          </li>
          <li>
            <span>获取鸡腿</span>
          </li>
          <li>
            <span>叩丁狼官网</span>
          </li>
        </ul>
        <div class="btn" @click="going">登录</div>
        <!-- <div class="btn">
          <img src="../../assets/images/Shopping.png" alt="" />
          购物车
          <span>0</span>
        </div> -->
      </div>
    </div>
  </div>
</template>
 
<script>
import headImg from "../../assets/images/userImg.png";
export default {
  data() {
    return {
      headImg,
    };
  },
  methods: {
    going() {
      this.$store.commit("upisShow", true);
    },
  },
};
</script>
 
<style lang = "less" scoped>
.top-head {
  color: #fff;
  font-size: 14px;
  height: 40px;
  line-height: 40px;
  background: #242b39;
  .banxin {
    justify-content: space-between;
  }
  .right {
    ul {
      li {
        cursor: pointer;
        margin-right: 20px;
        img {
          width: 26px;
          height: 26px;
          vertical-align: middle;
          margin-right: 15px;
          border-radius: 50%;
        }
      }
    }
    .btn {
      cursor: pointer;
      width: 124px;
      text-align: center;
      background: #0a328e;
      display: flex;
      justify-content: space-around;
      align-items: center;
      img {
        width: 20px;
        height: 20px;
      }
      .total {
        width: 22px;
        height: 22px;
        background: #fd604d;
        border-radius: 11px;
        line-height: 22px;
        text-align: center;
      }
    }
  }
}
</style>